I need some help with my compiler
At my school, we use microsoft visual c++ to write and compile our programs. In one of our programs we are required to use a string data type. Well when we compile the program, we get an error and it cant be run. In the book, it says that if we get an error, it is because our compiler does not have the bool data type. It tells us that we should include the following in our program and it should be ok.
#ifndef _BOOL_H
#define _BOOL_H
typedef int bool;
const int FALSE = 0;
const int TRUE = 1;
#endif
Now we put this in but we still get an error. I saw on some other thread that some people on here are versed in c++ and i was wondering if anyone can help me out.
Last edited by benmanhaha; Dec 02, 2005 at 12:42 AM // 00:42..
|